<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()
            + "://" + request.getServerName()
            + ":" + request.getServerPort()
            + path + "/";
%>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>java论坛</title>
    <jsp:include page="foot2.jsp"/>
    <link rel="stylesheet" href="<%=basePath%>css/base.css">
    <link rel="stylesheet" href="<%=basePath%>css/style.css">
</head>
<body>
<div class="content">
    <div class="wrap">
        <div class="art-height"></div>
        <div class="community">
            <div class="com-fl fl">
                <div class="hd">
                    <ul>
                        <li style="background:url(<%=basePath%>upload/yima_photo.png) no-repeat center center;height:289px"></li>
                        <li style="background:url(<%=basePath%>upload/yima_photo.png) no-repeat center center;height:289px"></li>
                        <li style="background:url(<%=basePath%>upload/yima_photo.png) no-repeat center center;height:289px"></li>
                    </ul>
                </div>
                <div class="bd">
                    <ul></ul>
                </div>
            </div>
            <div class="com-fr fr">
                <div class="com-a">
                    <div class="com-a1">it 程序员</div>
                    <div class="com-a2">java社区专为程序猿发表心声的地方</div>
                </div>
                <div class="com-b">
                    <div class="com-b1">#同步比较:
                        Vector是同步的,类似于arraylist,继承的list.放的对象.
                        hashtable是同步的,继承的是map,常用hashmap比较,放的键值对
                    </div>
                </div>
                <br>
                <div class="com-b">
                    <div class="com-b1"># list是元素有序的,使用了索引,允许为空,允许重复.
                        继承它的实现类有Vector(同步数组),Arraylist(不同步数组),linkedlist(链表),stack继承vector,加上5个额外的方法得以当做堆栈使用(push,pop,peek,empty,search)
                    </div>
                </div>
                <br/><br/>
                <div class="com-b">
                    <div class="com-b1">#同步比较:
                        Vector是同步的,类似于arraylist,继承的list.放的对象.
                        hashtable是同步的,继承的是map,常用hashmap比较,放的键值对
                    </div>
                </div>
                <br>
                <div class="com-b">
                    <div class="com-b1">#同步比较:
                        set是集,元素无序,不允许重复.允许有一个null,
                        实现类hashset(里面是集,只添加对象,没有键,根据对象生成hashcode,哈希表,散列表,hashcode(),equals()去重复),
                        treeset(元素需能比较,以树的形式存储,实现Comparable接口,覆盖compareTo方法),
                    </div>
                </div>
                <br>
            </div>
        </div>

        <div class="ru">
            <div class="ru-fl fl">
                <div class="ru-a">
                    <div class="ru-title">
                        <div class="cou-b1"><img src="<%=basePath%>images/cou-b1.jpg">课程</div>
                        <div class="ru-a2">
                            <div>
                                <tr>
                                    <td>
                                        <span>
                                        </span>
                                    </td>
                                </tr>
                            </div>
                        </div>
                    </div>
                </div>

                <input hidden value="${searchFaile}" id="getTiezi">
                <c:forEach items="${requestScope.searchSuccess}" var="tiezi">
                    <div class="ru-b">
                        <ul>
                            <a href="<%=basePath%>TestSX/searchOneTiezi?Tieziid=${tiezi.id}">
                                <li>
                                    <div class="wt-fl fl">
                                        <div class="wt-a1"><img src="<%=basePath%>upload/com-b.jpg"></div>
                                        <div class="wt-a2">${tiezi.userEntity.loginId}</div>
                                    </div>
                                    <div class="wt-fr fl">
                                        <div class="wt-r1"><span>帖子分类</span>${tiezi.type}<em>New</em></div>
                                        <div class="wt-r7"><em>${tiezi.fname}</em></div>
                                        <div class="wt-r2">评论：${tiezi.fnumber}</div>
                                        <div class="wt-r2">点赞：${tiezi.fdianzan}</div>
                                        <div class="wt-r2">阅读：${tiezi.more2}</div>
                                        <div class="wt-r2">时间：${tiezi.ftime}</div>
                                    </div>
                                </li>
                            </a>
                        </ul>
                    </div>
                </c:forEach>
                <div id="moreInfo" onclick="loadMore()" class="skt-more com-more"><a
                        href="<%=basePath%>TestSX/searchAllFile">查看更多</a></div>
                <h2 id="hiddenInfo">${hiddenMore}</h2>
            </div><!--ru-fl-->

            <div class="ru-fr fr">
                <div class="ru-c1" id="fabiaotezi"><a href="<%=basePath%>userLogin/postTiezi.jsp">发表帖子</a></div>
                <br><br>
                <div class="ru-c2"><img src="<%=basePath%>images/cou-b1.jpg">热门标签</div>
                <div class="ru-c3">
                    <a href="http://www.imooc.com/course/programdetail/pid/33"><span>安卓</span></a>
                    <a href="http://www.imooc.com/course/programdetail/pid/60"><span>java</span></a>
                    <a href="http://www.imooc.com/learn/386"><span>JS</span></a>
                    <a href="http://www.imooc.com/learn/9"><span>HTML</span></a>
                    <a href="http://www.imooc.com/course/programdetail/pid/59"><span>SSM</span></a>
                    <a href="http://www.imooc.com/course/programdetail/pid/51"><span>python</span></a>
                </div>
                <div class="ru-c2"><img src="<%=basePath%>images/cou-b1.jpg">热门帖子</div>
                <div class="ru-c4">
                    <div class="ru-c5">
                        <div class="ru-d fl">热</div>
                        <div class="ru-e fl">
                            <div class="ru-e1">java 从入门到放弃</div>
                            <div class="ru-e2"><img
                                    src="<%=basePath%>upload/focus-a2.png">${searchOneInfo.fname}<br/><span>${searchOneInfo.ftime}</span>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="ru-c6"><a href=""><img src="<%=basePath%>upload/community_photo.png"></a></div>
            </div>
        </div><!--ru-->
    </div>
</div>

<div class="footer">
    <div class="wrap">
        <div class="foot">
            <div class="foot-left fl">
                <a href="">关于我们</a>
                <a href="">加入我们</a>
                <a href="<%=basePath%>userLogin/contact.jsp">联系我们</a>
                <a href="">媒体采访</a>
            </div>
            <div class="foot-c fl"><a href=""><img src="<%=basePath%>images/foot-logo.png"></a></div>
            <div class="foot-right fr">
                <a href="">同城活动</a>
                <a href="">课程资讯</a>
                <a href="">最新发布</a>
                <a href="">热门文章</a>
            </div>
        </div>
        <div class="foot-btm">实训第三小组</div>
    </div>
</div>


<!--登录注册弹窗-->
<div class="mask"></div>
<div class="login">
    <div class="login-title">
        <div class="login-a">登录</div>
        <div class="login-b"></div>
        <div class="login-c close">x</div>
    </div>
    <div class="login-btm">
        <div class="login-d"><input type="text" class="login-text" placeholder="注册时填写的邮箱"></div>
        <div class="login-d"><input type="password" class="login-pas" placeholder="密码"></div>
        <div class="login-d"><input type="button" class="login-btn" placeholder="登录"></div>
        <div class="login-f">
            <a href="">忘记密码</a>
            <span>还没有焦点账号?><a href="javascript:;" class="reg-href">点击注册</a></span>
        </div>
    </div>
</div>

<div class="reg">
    <div class="login-title">
        <div class="login-a">注册</div>
        <div class="login-b"></div>
        <div class="login-c close">x</div>
    </div>
    <div class="login-btm">
        <div class="login-d"><input type="text" class="login-text" placeholder="邮箱/手机号"></div>
        <div class="login-d"><input type="password" class="login-pas" placeholder="密码"></div>
        <div class="login-d"><input type="button" class="login-btn" placeholder="注册"></div>
        <div class="login-f">
            <a href="">忘记密码</a>
        </div>
    </div>
</div>


<script src="<%=basePath%>js/jquery.SuperSlide.2.1.1.js"></script>
<script src="<%=basePath%>js/jquery-1.11.1.min.js"></script>
<script src="<%=basePath%>js/Action.js"></script>
//加载帖子信息(未发布帖子）
<script type="text/javascript">
    $(document).ready(function () {
        var $tishi = $("#getTiezi").val();
        if ($tishi == "") {
        } else {
            alert($tishi);
        }
    })
</script>

//加载更多的帖子信息
<script>
    $(document).ready(function () {
        var $hiden = $("#hiddenInfo").val();
        if ($hiden == "") {

        } else {
            $("#moreInfo").hide();
        }
    })


</script>

<script>
    $(".delete_tiezi").click(function () {

    })
</script>


<script>
    $(".com-fl").slide({
        titCell: ".bd ul",
        mainCell: ".hd ul",
        effect: "fold",
        autoPlay: true,
        autoPage: true,
        mouseOverStop: false,
        trigger: "click",
        startFun: function (i) {
            var curLi = jQuery(".com-fl .bd li").eq(i);
            if (!!curLi.attr("_src")) {
                curLi.css("background-image", curLi.attr("_src")).removeAttr("_src")
            }
        }
    })
</script>
<script>
    $(".sort").click(function () {
        $(this).toggleClass("sort-cut")
    })
</script>
<script>
    $(".dropdown").bind({
        click: function () {
            $(this).find(".droplist").stop().slideDown();
        },
        mouseleave: function () {
            $(this).find(".droplist").hide();
        }
    });
    $(".dropdown .droplist li").click(function () {
        $(this).parents(".dropdown").children("span").text($(this).text());
        $(this).parents(".droplist").hide().attr("data-value", $(this).attr("data-id"));
    });
</script>
</body>
</html>
